package com.StarStudio.Service;


import com.ruoyi.common.core.Entity.Result;
import com.ruoyi.common.core.Entity.UserInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.*;

@Service
@FeignClient(value = "UserInfo")
public interface UserInfoService {



    @RequestMapping("/findByUserId/{userId}")
    UserInfo findByUser_id(@PathVariable(value = "userId") long userId);

    @PutMapping("/put")
    Result updateUserInfo(@RequestBody UserInfo userInfo);

    @RequestMapping("/findAllRecordNumber")
    long findAllRecordNumber();

    @RequestMapping("/TodayLoginUserNumber")
    int today_login_user_number(@RequestParam(value = "today") String today);

    @RequestMapping("/TodayPurchaseUserNumber")
    int today_purchase_user_number();

    @RequestMapping("/TotalPurchaseUserNumber")
    int totalPurchaseUserNumber();

    @RequestMapping("/BeansSpendToday")
    int Beans_spend_today();

    @RequestMapping("/BeansSpendTotal")
    int Beans_spend_total();

    @RequestMapping("/CouponsSpendToday")
    int Coupons_spend_today();

    @RequestMapping("/CouponsValueSpendToday")
    double Coupons_value_spend_today();


    @RequestMapping("/CouponsSpendTotal")
    int Coupons_spend_total();

    @RequestMapping("/CouponsValueSpendTotal")
    double Coupons_value_spend_total();
}
